ユーザーガイド

このセクションでは、PyVistaの一般的な使用方法について、過去にVTKを使用したことがあるかどうかにかかわらず、3DプロットのためにPython的な方法で利用しようとしているユーザーを対象に説明します。PyVistaの主要な概念を示す個々のセクションについては、以下の目次またはサイドパネルのを参照してください。

単純な対話型の例

この基本的な例は、PyVistaの3つの主要な機能を示しています。

  • 単純な numpymatplotlib のようなインターフェース

  • 様々な組込み例

  • キーワード引数を使用した直感的なプロット

Here, we download the Stanford dragon mesh, color it according to height, and plot it using a web-viewer. This same example will run identically locally.

from pyvista import examples

mesh = examples.download_dragon()
mesh['scalars'] = mesh.points[:, 1]
mesh.plot(background='white', cpos='xy', cmap='plasma', show_scalar_bar=False)

With just a few lines of code we downloaded a sample mesh from the web, added scalars to it based on the points of the mesh, and plotted it while controlling the orientation, color, and data presented in the visualization.

The following sections explain the details of the how and why of PyVista's interface.

ビデオ

PyVistaについて学ぶために見ることができるいくつかのビデオを以下に示します:

  • PyConJP 2020 トーク "How to plot unstructured mesh file on Jupyter Notebook" (15分):

    • `ビデオ `_

    • `材料 `_

追加できる資料があれば, `報告 `_ してください.